package com.tpyg.wallet.account.entity;

import java.io.Serializable;
import java.util.Date;

public class ChatUser implements Serializable {
    private Long id;

    private String username;

    private Integer gender;

    private String twodimensionalcode;

    private String signature;

    private String homecity;

    private String photo;

    private Double longitude;

    private Double latitude;

    private Date lastLogonTime;

    private Integer onlineState;

    private Integer fansNumber;

    private String deviceToken;

    private String friendCircleBg;

    private Date updateDatetime;

    private String email;

    private String name;

    private String mobile;

    private String promotionCode;

    private Integer promotionNumber;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getTwodimensionalcode() {
        return twodimensionalcode;
    }

    public void setTwodimensionalcode(String twodimensionalcode) {
        this.twodimensionalcode = twodimensionalcode == null ? null : twodimensionalcode.trim();
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature == null ? null : signature.trim();
    }

    public String getHomecity() {
        return homecity;
    }

    public void setHomecity(String homecity) {
        this.homecity = homecity == null ? null : homecity.trim();
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Date getLastLogonTime() {
        return lastLogonTime;
    }

    public void setLastLogonTime(Date lastLogonTime) {
        this.lastLogonTime = lastLogonTime;
    }

    public Integer getOnlineState() {
        return onlineState;
    }

    public void setOnlineState(Integer onlineState) {
        this.onlineState = onlineState;
    }

    public Integer getFansNumber() {
        return fansNumber;
    }

    public void setFansNumber(Integer fansNumber) {
        this.fansNumber = fansNumber;
    }

    public String getDeviceToken() {
        return deviceToken;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken == null ? null : deviceToken.trim();
    }

    public String getFriendCircleBg() {
        return friendCircleBg;
    }

    public void setFriendCircleBg(String friendCircleBg) {
        this.friendCircleBg = friendCircleBg == null ? null : friendCircleBg.trim();
    }

    public Date getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(Date updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getPromotionCode() {
        return promotionCode;
    }

    public void setPromotionCode(String promotionCode) {
        this.promotionCode = promotionCode == null ? null : promotionCode.trim();
    }

    public Integer getPromotionNumber() {
        return promotionNumber;
    }

    public void setPromotionNumber(Integer promotionNumber) {
        this.promotionNumber = promotionNumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ChatUser other = (ChatUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getTwodimensionalcode() == null ? other.getTwodimensionalcode() == null : this.getTwodimensionalcode().equals(other.getTwodimensionalcode()))
            && (this.getSignature() == null ? other.getSignature() == null : this.getSignature().equals(other.getSignature()))
            && (this.getHomecity() == null ? other.getHomecity() == null : this.getHomecity().equals(other.getHomecity()))
            && (this.getPhoto() == null ? other.getPhoto() == null : this.getPhoto().equals(other.getPhoto()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getLastLogonTime() == null ? other.getLastLogonTime() == null : this.getLastLogonTime().equals(other.getLastLogonTime()))
            && (this.getOnlineState() == null ? other.getOnlineState() == null : this.getOnlineState().equals(other.getOnlineState()))
            && (this.getFansNumber() == null ? other.getFansNumber() == null : this.getFansNumber().equals(other.getFansNumber()))
            && (this.getDeviceToken() == null ? other.getDeviceToken() == null : this.getDeviceToken().equals(other.getDeviceToken()))
            && (this.getFriendCircleBg() == null ? other.getFriendCircleBg() == null : this.getFriendCircleBg().equals(other.getFriendCircleBg()))
            && (this.getUpdateDatetime() == null ? other.getUpdateDatetime() == null : this.getUpdateDatetime().equals(other.getUpdateDatetime()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getPromotionCode() == null ? other.getPromotionCode() == null : this.getPromotionCode().equals(other.getPromotionCode()))
            && (this.getPromotionNumber() == null ? other.getPromotionNumber() == null : this.getPromotionNumber().equals(other.getPromotionNumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getTwodimensionalcode() == null) ? 0 : getTwodimensionalcode().hashCode());
        result = prime * result + ((getSignature() == null) ? 0 : getSignature().hashCode());
        result = prime * result + ((getHomecity() == null) ? 0 : getHomecity().hashCode());
        result = prime * result + ((getPhoto() == null) ? 0 : getPhoto().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getLastLogonTime() == null) ? 0 : getLastLogonTime().hashCode());
        result = prime * result + ((getOnlineState() == null) ? 0 : getOnlineState().hashCode());
        result = prime * result + ((getFansNumber() == null) ? 0 : getFansNumber().hashCode());
        result = prime * result + ((getDeviceToken() == null) ? 0 : getDeviceToken().hashCode());
        result = prime * result + ((getFriendCircleBg() == null) ? 0 : getFriendCircleBg().hashCode());
        result = prime * result + ((getUpdateDatetime() == null) ? 0 : getUpdateDatetime().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getPromotionCode() == null) ? 0 : getPromotionCode().hashCode());
        result = prime * result + ((getPromotionNumber() == null) ? 0 : getPromotionNumber().hashCode());
        return result;
    }
}